﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Text;

namespace webget.WebApp
{

	public class HtmlBuilder
	{
		public HtmlBuilder()
		{
			this.StringBuilder = new StringBuilder();
		}

		public StringBuilder StringBuilder
		{
			get;
			set;
		}

		public void write(string s) { this.StringBuilder.Append(s); }
		public void newLine() { write("<br />"); }

		public void bold(string s) { write("<b>" + s + "</b>"); }

		public void separator() { write(" - "); }

		public void includeScript(string s) { write("<script src=\"" + s + "\"></script>"); }

		public void table_beginCell() { write("<td>"); }
		public void table_endCell() { write("</td>"); }
		public void table_beginRow() { write("<tr>"); }
		public void table_endRow() { write("</tr>"); }

		public void beginHtml() { write("<html>"); }
		public void endHtml() { write("</html>"); }
		public void beginHead() { write("<head>"); }
		public void endHead() { write("</head>"); }
		public void beginBody() { write("<body>"); }
		public void endBody() { write("</body>"); }

		public void includeStyle(string s) { write("<link rel=\"Stylesheet\" type=\"text/css\" href=\"" + s + "\" />"); }
	}
}